package com.yf.dao.course;

import com.yf.dao.BaseDao;
import com.yf.entity.course.LessonOrderEntity;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.yf.vo.OrderBackVo;
import java.util.Map;


/**
 * 订单Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Oct 23 17:22:49 CST 2018
 */
public interface LessonOrderDao extends BaseDao<LessonOrderEntity> {

    /**
     * 获取用户的订单
     */
    List<LessonOrderEntity> getOrderByUser(@Param("userId") Long userId,@Param("payStatus") Integer payStatus);

    /**back 订单信息
     * @return
     */
    List<OrderBackVo> orderList(Map<String, Object> params);

    LessonOrderEntity getByOrderNo(String orderNo);

}
